Skip to main content

Example

This example hooks math.random to ensure that any calls made from within the hook thread always return 1, while allowing normal game scripts to receive actual random numbers.